From: Adel Gadllah Date: Fri, 25 Feb 2011 14:43:43 +0000 (+0100) Subject: appWellMenu: Show the "new window" item for non running apps X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8855 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7ddf54c4d33672b381467f0000cfd9770241cc62;p=gnome-shell.git appWellMenu: Show the "new window" item for non running apps There is no reason to not display it, and from a user's point of view the distinction is confusing. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a2286d011..91a39151f 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -548,10 +548,9 @@ AppIconMenu.prototype = { let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id()); - this._newWindowMenuItem = windows.length > 0 ? this._appendMenuItem(_("New Window")) : null; + this._newWindowMenuItem = this._appendMenuItem(_("New Window")); + this._appendSeparator(); - if (windows.length > 0) - this._appendSeparator(); this._toggleFavoriteMenuItem = this._appendMenuItem(isFavorite ? _("Remove from Favorites") : _("Add to Favorites"));